import {GET_SEARCH_STATE} from '../actionTypes'
const defaultState={
    searchiList:[],
}

export default(state=defaultState,action)=>{
    let newState=JSON.parse(JSON.stringify(state))
    switch(action.type){
        case GET_SEARCH_STATE:
            newState.searchiList=action.payload.newState
        break;
        default:
            break;
    }
    return newState
}